export default {
	namespaced: true,
	state: {
		msg: "abc msg",
		num: 0,
	},
	mutations: {
		changeMsg(state) {
			state.msg = "change abc msg";
		},
		changeNum(state, obj) {
			console.log(state, obj);
			state.num++;
		},
	},
	actions: {
		changeMsg(store) {
			window.setTimeout(() => {
				store.commit("changeMsg", {
					name: "deng",
				});
			});
		},
	},
};
